home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lantools
/
blueprnt
/
bpremote.asm
< prev
next >
Wrap
Assembly Source File
|
1989-09-27
|
2KB
|
52 lines
;************************************************************
;* BP-LAN Remote Process Exec. (BPREMOTE.ASM, BPREMOTE.COM) *
;* by Craig Chaiken *
;* September 20, 1989 *
;* *
;* Function: Executes DOS Command Line as Remote Process *
;* on Network Hub Computer. *
;* Command Format: *
;* BPREMOTE /socket_num /dos_command *
;************************************************************
codeseg segment byte
assume cs:codeseg,ds:codeseg,es:codeseg
org 100h
start: jmp remote
;
remote_buffer db 256 dup (?)
socket_num db 0
packet_length dw 0
include bpbioshd.mod
include misc.mod
remote proc near ;Exit if no Parameters
mov al,cs:[80h]
or al,al
jnz remot1
ret
remot1: mov si,81h
call get_opt
mov socket_num,cl ;get socket_num from command line
call wslash
lea di,remote_buffer[1]
mov word ptr packet_length,0
remot2: mov al,[si]
inc si
cmp al,'"'
jz remot2
mov [di],al
inc di
inc packet_length
cmp al,13
jnz remot2
inc packet_length
mov byte ptr remote_buffer,'E'
put_packet socket_num,packet_length,offset remote_buffer
int 20h
remote endp
codeseg ends
end start